package com.newhero.product.module.sys.model.vo;

import java.io.Serializable;
import com.newhero.product.module.sys.model.User;

/**
 * @ClassName: UserVo 
 * @Description: TODO 
 * @author Caolj 648198687@qq.com 
 * @date 2017-3-15 下午3:44:48
 */
public class UserVo implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String userID;

	private String userLoginName;

	private String userName;

	private Integer userSex;

	private Integer userStatus;

	private String organID;
	
	private String organName;

	private String userPhone;
	
	private String userMobile;
	
	private String userOrder;
	
	private String roleSelected;
	

	public String getRoleSelected() {
		return roleSelected;
	}

	public void setRoleSelected(String roleSelected) {
		this.roleSelected = roleSelected;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getUserLoginName() {
		return userLoginName;
	}

	public void setUserLoginName(String userLoginName) {
		this.userLoginName = userLoginName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserOrder() {
		return userOrder;
	}

	public void setUserOrder(String userOrder) {
		this.userOrder = userOrder;
	}

	public Integer getUserSex() {
		return userSex;
	}

	public void setUserSex(Integer userSex) {
		this.userSex = userSex;
	}

	public Integer getUserStatus() {
		return userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

	public String getOrganID() {
		return organID;
	}

	public void setOrganID(String organID) {
		this.organID = organID;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}
	
	/**
	 * 比较vo和数据库中的用户是否同一个user，采用id比较
	 * @param user 用户
	 * @return 是否同一个人
	 */
	public boolean equalsUser(User user) {
		if (user == null) {
			return false;
		}
		String userId = user.getUserID();
		if (userID == null || userId == null) {
			return false;
		}
		return userID.equals(userId);
	}

}